package com.atguigu.springcloud.service.impl;

import com.atguigu.springcloud.service.PaymentHystrixService;
import org.springframework.stereotype.Component;

@Component
public class PaymentHystrixServiceFallback implements PaymentHystrixService {
    @Override
    public String paymentInfo_OK(Integer id) {
        return "服务降级了！这里是 PaymentHystrixServiceFallback 类提供的降级方案。ok";
    }

    @Override
    public String payment_Timeout(Integer id) {
        return "服务降级了！这里是 PaymentHystrixServiceFallback 类提供的降级方案。timeout";
    }
}
